package com.itheima.entity;
import org.springframework.stereotype.Controller;

//使用Controller注解将UserController类标识为Spring中的Bean
@Controller
public class Sun {
    private static Sun instance=new Sun();
    private Sun(){}
    public static Sun getInstance()
    {
        return instance;

    }

    public void up()
    {
        System.out.println("太阳升起了");

    }

    public void down()
    {

        System.out.println("太阳落下了");
    }



}
